package rubik.fitness;

import rubik.Cube;

public class ConflictsFitness implements IFitnessFunc {

	@Override
	public double getFitness(Cube cube) {
		return Cube.ORIG_SIZE*Cube.ORIG_SIZE*6 - cube.countConflicts();
	}

	@Override
	public double getMaxFitness() {
		return 54;
	}

}
